package at.guigu.controller;

import at.guigu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//将Usercontroller放到Spring容器中
@Controller
@RequestMapping("/user")
public class Usercontroller {

    //设置请求地址映射
    @RequestMapping(value = "/quick")
    public String save() {
        System.out.println("Usercontroller save...");
        return "success.jsp";
        // 等同于return "/user/success.jsp";
    }
}